.index-header {
  height: 70px;
  width: 100%;
  background-color: #393e46;
  transition: height 0.5s ease-in-out;
  flex-shrink: 0;
  &.hide-nav {
    height: 0;
  }
}
.header-nav-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  box-shadow: 0px 8px 10px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  .header-nav {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    height: 100%;
    width: 90%;
    transition: all 0.5s ease;
  }
  .header-website {
    margin-right: 90px;
    color: #fff;
    font-size: 22px;
    font-weight: 700;
    display: block;

    .singh-home {
      background-image: linear-gradient(90deg, #00fff5, #00adb5);
      background-clip: text;
      line-height: 70px;
      -webkit-text-fill-color: transparent;
      animation: colour 3s linear infinite;
      
    }
  }
  .nav-list {
    flex: 1;
    height: 100%;
    display: flex;
    align-items: center;
  }
  .nav-list-item {
    position: relative;
    padding: 8px 30px;
    color: #21ebff;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.5s;
    overflow: hidden;
    &::before {
      content: "";
      position: absolute;
      top: 0;
      left: 0;
      width: 10px;
      height: 10px;
      border-top: 2px solid #21ebff;
      border-left: 2px solid #21ebff;
      transition: all 0.5s;
      transition-delay: 0.5s;
    }
    &::after {
      content: "";
      position: absolute;
      right: 0;
      bottom: 0;
      width: 10px;
      height: 10px;
      border-right: 2px solid #21ebff;
      border-bottom: 2px solid #21ebff;
      transition: all 0.5s;
      transition-delay: 0.5s;
    }
    &:hover::before {
      width: calc(100% - 2px);
      height: calc(100% - 2px);
      transition: all 0.5s;
      transition-delay: 0s;
    }
    &.nav-active::before {
      width: calc(100% - 2px);
      height: calc(100% - 2px);
      transition: all 0.5s;
      transition-delay: 0s;
    }
    &.nav-active::after {
      width: calc(100% - 2px);
      height: calc(100% - 2px);
      transition: all 0.5s;
      transition-delay: 0s;
    }
    &:hover::after {
      width: calc(100% - 2px);
      height: calc(100% - 2px);
      transition: all 0.5s;
      transition-delay: 0s;
    }
    &:hover {
      background-color: #21ebff;
      color: #333;
      box-shadow: 0 0 50px #21ebff;
      transition-delay: 0.5s;
    }
    &:nth-child(1) {
      filter: hue-rotate(115deg);
    }
    &:nth-child(2) {
      filter: hue-rotate(270deg);
    }
    &:nth-child(4) {
      filter: hue-rotate(55deg);
    }
    & + .nav-list-item {
      margin-left: 50px;
    }
    &.nav-active {
      background-color: #21ebff;
      color: #222831;
      box-shadow: 0 0 50px #21ebff;
      transition-delay: 0.5s;
    }
  }
}

.nav-switch {
  position: absolute;
  top: 15px;
  right: 30px;
  z-index: 1;
  transition: all .5s ease-in-out;
  & .icon-chilun {
    font-size: 40px;
    font-weight: 800;
    color: #fff;
    text-shadow: 4px 4px 4px rgba(0, 0, 0, 0.5);
    cursor: pointer;
  }
  &:hover {
    transform: rotate(45deg);
  }
  &:hover::before {
    width: 100%;
  }
  &::before {
    content: '\e65b';
    font-family: 'iconfont';
    position: absolute;
    font-size: 40px;
    left: 0;
    height: 0;
    overflow: hidden;
    transition: all 0.5s ease-in-out;
    color: #222831;
    height: 100%;
    width: 0%;
  }
}

@media (max-width: 1100px) {
  .header-nav-wrap .header-nav {
    width: 100%;
  }
}
@media (max-width: 1000px) {
  .header-nav-wrap .header-website {
    width: 100%;
    display: none;
  }
  .header-nav-wrap .header-nav {
    justify-content: center;
  }
}

@keyframes colour {
  0% {
    filter:hue-rotate(0deg)
  }
  100% {
    filter:hue-rotate(-1turn)
  }
}